<!DOCTYPE html>
<html lang="en">
    <head>
        <title></title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
    </head>
    <body>
        <div id="app">
            <input type="text" v-model="firstname">
            <input type="text" v-model="lastname">
            <input type="text" v-model="allname">
            {{test}}
            {{test}}
            {{test}}
            {{test}}
        </div>
        <script src="./lib/vue-2.4.0.js"></script>
        <script>
            var vm = new Vue({
                el: '#app',
                data: {
                    firstname:'',
                    lastname:'',
                    allname:'',
                },
                computed: {
                    test:function(){
                        console.log(11)
                        return this.firstname + this.lastname
                    }
                },
                watch: {
                    
                },
                methods: {
                    add(){
                        console.log(1)
                        return '我是方法2333'
                    }
                },
            })
        </script>
    </body>
</html>